from django.contrib import admin
from record.models import StorageInstanceRecord, DBInstanceRecord


@admin.register(StorageInstanceRecord)
class StorageInstanceRecordAdmin(admin.ModelAdmin):
    list_display = ['name', 'create_date', 'create_uid', 'storage_instance_id', 'type']
    list_filter = ['type']


@admin.register(DBInstanceRecord)
class DBInstanceRecordAdmin(admin.ModelAdmin):
    list_display = ['name', 'create_date', 'create_uid', 'db_instance_id','database_name']
    list_filter = ['database_name']
